package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerGetFishNamesResponse extends BaseQLResponse
{
    /// <summary>
    /// 鱼名称，格式：1,xx鱼;2,xx鱼
    /// </summary>
    public String FishNamesString;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj.getJSONObject("error_response");
        if (t != null && !t.isNullObject())
        {
            ErrCode = t.getString("code");
            ErrMsg = t.getString("msg");
        }
        else
        {
            t = jsonObj.getJSONObject("butler_get_fish_names_response");
            if (t.has("fish_names_string"))
                FishNamesString = t.getString("fish_names_string");
        }
    }
}
